<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>I用户注册</title>
</head>
<body>

	<!-- 表单有文件控件的时候需要设置编码 enctype="multipart/form-data" -->
	<form action="/struts_6_fileupload/register.do?type=register" method="post" enctype="multipart/form-data">
		姓名：<input type="text" name="name"><br>
		头像：<input type="file" name="photo"> <br>
		<input type="submit" value="注册用户">	
	</form>
</body>
</html>